package com.wicket.okrbff.web.contorller;

import com.wicket.okrbff.biz.service.BehaviorTypeService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrframework.integration.FwBaseBehaviorTypeClient;
import com.wicket.okrframework.integration.dto.QueryBehaviorTypeListRespDto;
import com.wicket.okrframework.integration.dto.QueryBehaviorTypeListReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffBehaviorTypeDto;
import cn.hutool.core.bean.BeanUtil;
import java.util.stream.Collectors;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrframework.integration.dto.QueryBehaviorTypeMenuListBorderRespDto;
import com.wicket.okrframework.integration.dto.QueryBehaviorTypeMenuListBorderReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffBehaviorTypeMenuDto;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "BehaviorType", tags = {"BehaviorType"})
@RestController
// @RequestMapping("/oms/behaviorType/")
public class BehaviorTypeController {

    @Autowired
    BehaviorTypeService behaviorTypeService;



    /**
   * B1-1查询行为类型列表(边界)
   * gen by moon at 8/10/2022, 3:35:25 AM
   */
    @PostMapping("/oms/behaviorType/queryBehaviorTypeListBorder")
    @ApiOperation(value = "B1-1查询行为类型列表(边界)", response = OkrResult.class)
    public OkrResult<BffQueryBehaviorTypeListBorderRespDto> queryBehaviorTypeListBorder(@RequestBody(required=false) @Validated BffQueryBehaviorTypeListBorderReqDto reqDTO){
        return OkrResult.success(behaviorTypeService.queryBehaviorTypeListBorder(reqDTO));
    }
/**
   * B1-1查询行为类型菜单列表(边界)
   * gen by moon at 10/8/2022, 3:10:47 AM
   */
    @PostMapping("/oms/behaviorType/queryBehaviorTypeMenuListBorder")
    @ApiOperation(value = "B1-1查询行为类型菜单列表(边界)", response = OkrResult.class)
    public OkrResult<BffQueryBehaviorTypeMenuListBorderRespDto> queryBehaviorTypeMenuListBorder(@RequestBody(required=false) @Validated BffQueryBehaviorTypeMenuListBorderReqDto reqDTO){
        return OkrResult.success(behaviorTypeService.queryBehaviorTypeMenuListBorder(reqDTO));
    }
}
